<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/1/30
  Time: 17:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html lang="zh">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
    <title>个人信息</title>
    <link href="${pageContext.request.contextPath}/css/bootstrap.min.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/css/materialdesignicons.min.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/css/style.min.css" rel="stylesheet">
</head>
<body>
<div class="container-fluid p-t-15">
    <div class="row">
        <div class="col-lg-12">
            <div class="card">
                <div class="card-body">
                    <form id="updateMessage" class="site-form" method="post" enctype="multipart/form-data">
                    <div class="edit-avatar">
                        <img src="${pageContext.request.contextPath}${user.img}" alt="加载失败" class="img-avatar">
                        <div class="avatar-divider"></div>
                        <div class="edit-avatar-content">
                            <input type="file" id="img1" name="img1" class="btn btn-default" value="修改头像"/>
                            <p class="m-0">选择一张你喜欢的图片座位头像，上传图片大小不能超过2M。</p>
                        </div>
                    </div>
                    <hr>
                        <div class="form-group">
                            <label for="id1">工号</label>
                            <input type="text" class="form-control" name="id" id="id1" value="${user.id}" disabled="disabled" />
                        </div>
                        <div class="form-group">
                            <label for="nickname">昵称</label>
                            <input type="text" class="form-control" name="nickname" id="nickname"  value="${user.name}" disabled="disabled">
                        </div>
                        <div class="form-group">
                            <label for="phone">手机号</label>
                            <input type="text" class="form-control" name="phone" id="phone"  placeholder="请输入正确的电话号码" value="${user.phone}">
                            <small id="emailHelp" class="form-text text-muted">请保证您输入的号码是正确的。</small>
                        </div>
                        <button type="button" id="updatebutton" class="btn btn-primary">保存</button>
                    </form>
                </div>
            </div>
        </div>

    </div>

</div>

<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/bootstrap.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/main.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/Customize/updateMessage.js"></script>
</body>
</html>